<?
$row = 1;
$col = 10;

$p=0;
if ($_REQUEST['p']!='') $p=$_REQUEST['p'];
$sql = "select tbl_product.*,tbl_product_special.sort as sort from tbl_product_special,tbl_product where tbl_product_special.lang='".$_lang."' and tbl_product_special.product_id = tbl_product.id order by tbl_product_special.sort limit ".$row*$col*$p.",".$row*$col;
$result = @mysql_query($sql,$conn);

$total= countRecord("tbl_product_special","status=0 and lang='".$_lang."'");
?>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<link href="themes/mall/default/styles/default/css/izishop.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style30 {color: #FF0000}
-->
</style>


<table align="center" cellSpacing="0" cellPadding="0" width="100%" border="0">
<?
for($i=0; $i<$row; $i++){
	for($j=1; $j<$col&&$products=mysql_fetch_assoc($result); $j++){
		$pro = getRecord("tbl_product","id=".$products['id'])?>
			  
                    <li  class="top_<?=$j?>"><a href="./?frame=product_detail&id=<?=$pro['id']?>" class="link3"><?=$pro['name']?>
                     
                     
                      </a></li>
                  
        <br/>
            <?
}
while($j<$col){
	echo "";
	$j=$j+1;
}
?></td>
	</tr>
<? }?>
</table>
